package com.order.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.order.common.R;
import com.order.po.order_record;
import com.order.po.put_record;
import com.order.service.put_recordService;

@Controller
public class put_recordController {
	 @Autowired
	  private put_recordService put_recordService;
	 
	 @RequestMapping({"/getput_recordbyid"})
	   @ResponseBody
	   public R getput_recordbyid(String parameter)
	   {
		 R r = R.ok().put("data", this.put_recordService.getput_recordbyid(parameter));
	     return r;
	   }
	 
	 @RequestMapping({"/insert_put_record"})
	   @ResponseBody
	   public List insert_put_record(@RequestBody List<put_record> list)
	   {
		  this.put_recordService.insert_put_record(list);
		return list;
	   }
}
